package com.itheima.a01oopextendsdemo01;

/***
 *@title Animal
 *@description <TODO description class purpose>
 *@author 12468
 *@version 1.0.0
 *@create 2024/10/17 0:28
 **/
public class Animal {

    // 子类只能访问父类非私有的成员
    public void eat() {
        System.out.println("吃饭");
    }

    public void drink() {
        System.out.println("喝水");
    }
}
